<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  // 监听地址的变化，选择登陆后的跳转方式
  watch: {
    "$route.path"(to, from) {
      this.$store.commit("setURL", from);
    },
  },
};
</script>

<style lang="less"  scoped>
</style>
